package org.dromara.web.system.domain.bo;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
//import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.web.system.domain.AppUser;

/**
 * APP用户信息业务对象 app_user
 *
 * @author Lion Li
 * @date 2025-09-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AppUser.class, reverseConvertGenerate = false)
public class AppUserBo extends BaseEntity {

    /**
     * 用户ID
     */
    private Long id;

    /**
     * 用户账号
     */
    private String userName;

    /**
     * 用户昵称
     */
    private String nickName;

    /**
     *  0用户  1采购员 2供应商 3司机 4仓库管理员 5质检员 6物流专员 7财务
     */
    @NotNull(message = " 0用户  1采购员 2供应商 3司机 4仓库管理员 5质检员 6物流专员 7财务不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long roleId;

    /**
     * 用户邮箱
     */
//    @NotBlank(message = "用户邮箱不能为空", groups = { AddGroup.class, EditGroup.class })
    private String email;

    /**
     * 手机号码
     */
    private String phone;

    /**
     * 用户性别（0=男 1=女 2=未知）
     */
//    @NotBlank(message = "用户性别（0=男 1=女 2=未知）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sex;

    /**
     * UUID
     */
//    @NotBlank(message = "UUID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String uuid;

    /**
     * 邀请码
     */
//    @NotBlank(message = "邀请码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String inviteCode;

    /**
     * 父级ID
     */
//    @NotNull(message = "父级ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parentId;

    /**
     * 头像地址
     */
//    @NotBlank(message = "头像地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String avatar;

    /**
     * 生活照片地址
     */
//    @NotBlank(message = "生活照片地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String photo;

    /**
     * 姓名
     */
//    @NotBlank(message = "姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String codeName;

    /**
     * 身份证号码
     */
//    @NotBlank(message = "身份证号码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String password;

    /**
     * 职业
     */
//    @NotBlank(message = "职业不能为空", groups = { AddGroup.class, EditGroup.class })
    private String occupation;

    /**
     * 学校
     */
//    @NotBlank(message = "学校不能为空", groups = { AddGroup.class, EditGroup.class })
    private String school;

    /**
     * 用户签名
     */
//    @NotBlank(message = "用户签名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String signature;

    /**
     * 出生年月
     */
//    @NotNull(message = "出生年月不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long birthday;

    /**
     * 身高(cm)
     */
//    @NotNull(message = "身高(cm)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long height;


    /**
     * 备注
     */
//    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
